Breaking out the common view code for prepping file view