Add delete controller and add delete function to pages