updated ui on view event