some refactor
Merge pull request #341 from liftforward/table-as-component

fixing preview image