Changed link_to_function to link_to_button for an improved user experience