enable edit actions only when operation is possible

the edit actions were set to be initially disabled and their set
enabled slots are connected to the undo, redo and copy available
signals of the edit box