remove link_to_function dependency