added color picker logic