Refactor file_view.d