changing the way lat lng is being passed from the updateForm function