OnCreate method implementation