Optimized code by using a single statement for "wallpaper change" response