Reorganize code, part 3.
Implement file view activity.