I have a couple of buttons that need to track the click. Each switches the screen to a new class. I want to make using the method, passing it a reference to the class to which the button switches. The problem is that an instance of the class is created in the method call, and I need to create it after releasing the button.