update form on grid click