Adding some functionality to main page links