editRooms function