added support for displaying categories