Added functionality for the category sidebar