added templating system based on nav elements. Added remote automatic code execution