Refactored other attr call, and created colorPicker function to call with hash input of data