updated core controller for previewtheme bug fix