mostly working sample. added ViewPager back to preview page. and renamed ui to match spec better.