setup delegate and color switching