handle anchor clinks correctly