Refactors render() to point to data file