add allowEdit option