added code for hide categories