Changed item selected callbacks mechanism and removed unrequired imports
and commented out code.