Add load event for popstate