Refactoring

So I didn't figure this out completely still. But at least this version will show pics on the first tab, pdfs on the second tab. And so far nothing on the 3rd tab. Meghan, can we plumb your stuff through before the 7pm demo tonight?