adding edit, delete to controller
adjusted views for edit, delete