update edit contact template to work with more generic view