refactoring side bar table source