updated background; used new event handlers