updates controller