submit function as a handler, editing of positions