functional app; commented code includes beginnings of viewpager for detailview