changed buttons to link_to, with fix