Work on fixing printing table and splitting pages properly