All undoable actions added to undo popup

Bug with clear contents in metabolites table, adds for invalid action