initialize to get template info to save widgets