simple demo for using viewcontroller