rework the integrated template for trayscan