smarter file viewer and responsive design