generate rooms controller