add ajax function for older activities, some changes on the profile layout