rearchitecture, control flow, initial ui