created reverse action js for close