stopped page reloading on header click