Add tests, convert to rails link_to and form_for