Sructurized handlebars code (added outlet and some resources