added functionality for room changing