updating user profile + some improvements