refactor templating into the InfoView