added theming functionalities for template choosing