files: added masthead view mode support