Refacto onCreate event