changed update method to fit the profile gui