Created the method to show/hide the windows