add settings class and bound for table, refactoring