make editing actions reusable