remove ad code from base template. [closes #64]