added device ready event