Hide and disable pointer events for modals on initialization