updates form and map