added transition as states change color.