working with shiny and editor performance fixes