make use of device ready event