Refactoring show template cat page