implemented ujs for search function and replace will_paginate with kaminari