had to change link_to to button_to in order to have update and delete methods to function correctly