updated onCreate methods