Added invert selection and removed selection mode