deactivate modal on mask click