trying to get the popstate to work
removing the selected classes after popstate
shouldnt have a problem with the index page popping anymore