Added hashchange listener to controller