made publish a child state of edit, and changed it to a popup