bug: updating color in DB only after save button press