Better solution to back-button and modals.