added link_to function to layout