Added delete functionality to the tertiary pages