create global funciton definitions
update functions to UI inputs
migrate away from scratchspace to global.R
add id comments
fix renderText to textOutput