updated dictionary in controller