make master controller dynamic