enableSelection functionality added