Rotate icons. Fix selection algorythm. Code clean