Applescript project wont show window after close

I am having a problem with an application I made in xcode. Whenever I close the main app window i am not able to reopen it, I have to actually close the whold program and reopen it. Is there something that I may be missing. I have searched like crazy and cant find nothing. If it is a stupid question I am really sorry but its bugging me.

Thanks in advance