final fix for ajax in profile