Reverted renderUI function