Added admin template check