refactored RoomViewController to use a main view