handling selection change. eventListener enabled. getContect to be fixed