Modified to support categories with bootstrap UI's tab functionality