Fixed issue #1294 from pit.agrologic.com - clear unused action also clean tables that used to fix layouts of tables on screen