selected is cleared after selecte mode is toggled off