Change anchor tag to link_to_route
Create form and optimise code