changed color of selected element