replace link_to_function with link_to