template widget work in progress