Modified search function in room_manager