work in progress category UI
refactor hack from earlier