initial pushstate functionality