change closing of modal window