Added admin role check and some templating to hide/show tabs.