change a lot files

and the profile is almost working fine with ajax call