adjust register template to support fancy ui