Fixed history bug and reload of all pages