Modified the view function and added delete function