replaced switchtheme with themekey and added needed styles