fixed anchor link problem.

added a controller to handle the click on the anchor link.