Fixed event handling for showing the table.
Added a simple preview (does not auto refresh atm).