refactor ajax use prefilter