add deselect function
selecting and deselecting
styling
Merge branch 'master' into deselect_category
some corrections on category deselection