implement delete in base controller class