refactoring

add TDMController as base class for all controllers