set up rendering date dynamically