added wakeup sync task and moved updating color into its own method