changed onReady logic to wait for interactive state instead of complete