implemented template choice in widget properties