added links to layout and updated controller