added profile update handling