Made changes to do less work in updateActivity.
- Reverted 99db269de87f71fda3a96c80408d365ca5911ca3.
- Check DOM element status for user before updating.