Automaically update the color

When the checkbox is checked and a proper value is insert we
automatically update the shown color.