update controller hierarchy and routes