adaptive category and selection box