change background color when selected/deselected