Adding handling for table caption