Condition to change the background of the form