restructuring and breaking down markup into views and hbs templates