update template for offline,bugfix