opacity undo and redo working