refactored routing, added handlebars templating