The close window icon should be hidden immediately after cancel editing