Apply tag filter as soon as document loads
Fix main tags being in incorrect position