History is now working properly and integrated into page switching
mechanism.