Update app.rb

added paging