added dynamic bgcolor