first click for create second click for close