adding data-selected attribute while selecting item