handleCodeInApp