fix wrong import
adds table
refactors the extra actions