merged file viewer code, removed unnecessary packages