Modify startup logic and Fix some ui