Added window close on click