Added delete-item function and logout view.