added funtionality for categories and fixed issue with default template footer