updating controller