added index action to pages controller so links can be acccessed from db; displayed link titles on homepage