Move initialize actions to on device ready