Loads data for templates