handling colors and value input