integrated embed feature, rewrote '/app' to '/', few stuff