fixing problem with hash not being set after li is clicked