Clearing subsequent pages when navigation changes and there is no next step