updating ui reference