Added undo for paste