added template for app view, prev/next buttons