added public property selectedIndex: it returns the private currentSelected