changes style and refactors machineCOnfigCtrl