createroom refactor