updating UI according to functional spec