refactor color inputs