fixing selection
saving selected item