Started to see issues with ui.panel now and used ui.newPanel instead.