first stage of the 'edit profile' working with ajax