sets task background appropriately