indent fix
comment fix
only update the view when necessary

on first load, there is a problem
when multiple categories are added or removed, there is also a problem
a method to remove all attributes of an element
a better way to handle categories updates

no redraw or updated when not necessary