Added delete functionality to views page