fix search controller
minor css styling
fix pagination bug and add kaminari
refactor count to size