Fix problem with preview button in template dialog.

Preview button is not removed whenever dialog is closed (teardown) so there is a need to restore it on setup - instead of on initialie as previously.