added close/hide functionality to all modals