refactor instance table component