improvements in sample view controller