add main_app scoping to preview path for plugins for #840