Add callback on ready
add ready callback