Fix app crash bug when using ROI
re-organize UI