click dock icon to reopen the window