default config for model and fix pagination to have filter