removing use of link_to_function