made all admin templates inherit from base.mako and refactoring the tag rendering