Fixed some issues on the xib file and now the window reopens after clicking on Dock Icon