update styles for selected item