Added support for categories in navigation bar.

Added support for categories in navigation bar.