Fixes sideframe and modal to listen to on_close and refresh_page