make dynamic bg option working