added object wrapper, saving to json in app.rb, updating ui