Replacing controller code for demo setup with newly created embedded directives.