Updating Class before Updating UI