Implemented Invert Selection and Toggle Red Lines