change view to use render so the static url will be passed