refactoring complexity of WallpaperPanel