in the app.rb forbid return of all results when empty string is passed; fixed bugs with ajax such as conflicts with paggination