Rewrote app without the iframe so as to make it work