used DIRECTORY_SEPARATOR instead of hardcoded slashes, removed header() in render()