add ransack

refactoring

refactoring