added resizing for the table and chart