Added Update method to MainActivity for using Observer-Pattern