fix TODO: use action chains for edit mode