fixed small bugs and now deselects groups when changing out of select tool