added table expanding capability