IMPORTANT: Change a lot the control flow of UI.