switch statement and background change