fix changeSiteState function

fix the dictionary key for resource control - need to make unittest actually check this