added edit feature to lead template