Prevent going back on wrong pages
