changed table to landscape format + fixed bug