ajax handling for myprofile page. not tested yet