added a viewcomponent sample