small fixes in app.rb