added the ready listener