Delete functionality and views