use $.post instead of xhr