added alert on updating template