completed the ViewComponentSample