Adjust the UI and add socket business logic controller

Adjust the UI and add socket business logic controller