added set_value function to form