changed search and ordering to ransack