added visual feedback when an element is selected