some refactoring to _tagtab.erb