bug in click-handler in views/main.js