implements common styles and basic file viewer