Contact template and handler