adding Datum and DatumSelectedListener
selecting rectangles