Revert "changed priority of background color condition in alertbox"

This reverts commit 4b7ded5490a58549b9da488c5d8d100105f2918c.