remove debug line
improve steps used to trigger UI update