view controller finally working