changing template code to an address book