minor fixes to app.rb