getting coordinates to proper field in the form