Updated UI Refresh to go back to using Repaint.