adds ready event