added category filter to templatetags