hide pages until loading modal is done