fixed table bug and made a pattern for the documents name.