First Working version of selection and highlighting