added event connections for idle loop