Updating the profile render function.~