add function to change chip color after a turn on server side