Added page history support for the backend