refactor for ui
Correction for standing and sittong modes