Ui changes for prod/test mode: added save variable current mode and interface for mode switch. Beginning of theme change