Make templates as Widget