improved the workings of the background color selector