code for embedded app added