added delete method to form view