Refined the front-end and changed some of the logics from room switching.
Passed test:1, 2, 3, 9, 10, 11