apply bg color to wrapper dynamically