added template spatial
window resizing is no longer handled by the engine. hook into the resize event if you so desire