edited view to show delete button