add SOD logic and optimize UI

add SOD logic and optimize UI