updated to user ajax