Added controller function for 'RoomActivity'.