move functions for shiny into shiny folder and source them in global.R