added generated templates
added fetching all messages for category and subcategories
fixed displaying category messages from users