enclosing authorize buttons in sample view