Moving to non-depreciated function renderUI