Removing old main class
finishing table and preparing for the next pane