Ui refactor--Pre boot and post boot with ui