creating tag page Refactoring