added switcher and theater mode to the code