Change emit connect to open callback.