core-4936 fix layout issues and add raw view for files displayed with
tabular view.Refactor code.