added context item selected handling