Control not going inside ready method