Finally fixed errors. Missing the = in render on index page which led to issue.