add mode switch for table and figure.