abstracting cotroller class from list controller