modify register templete