Added common demo function into a uigen abstract class and interface