set the correct template for the labView
started on refactoring demo code
added some demo code