making changes for ajax pageloads