Update code to use new shiny syntax