moved the bgcolor to the correct element