revise routine controller and routine detail controller