added buttons
main.coffee
updates legend