moved background property to State class