Added link_to function to controller class