GUI optimise

1. Add mode choose.
2. Refactor base network, incomplete.