Since we wish the window to happen when we click the button we need to add an onMouseEvent.
We wish the action to happen after the user has clicked the button, so we are going to use the on Release method,
that is after you have released the click on the button the new window will open.