added delete function to view and to controller. TDD on controller