store last selected color for later usage, remove old color before adding a new one