tags logic refactoring
tags page