pre branch to ensure page is saved