Edited beans controller and routes to add show, delete and edit