- Added a preview button, it is working with default forms for now.
- Fixed a bug that the solid switch was not being set according to
the part information.
- Some small refactor in the tabs to make the code better.
- Added an id to the tab, so that the program can recover the index
of the PartLayout being shown by a tab. This can be used to access
the part information easily.