Hide category selection if there are no categories and hide tags

Fixes #185.