add device ready eventhandlers