background and color switching implemented