added sort and search using ransack