Working on generic tablemodel