Updated the lobby controller for V3.

Just to organize the codes