modify theme to work plugins correctly