Split out data processing and viewing sections