changed priority of background color condition in alertbox