I have a function that is going to be the main area of this program, but when I add in a new function that needs to be executed by a button, it prevents the window from appearin