updated import

- moved media creation to factory class
- added media irns to combined index
- finally fixed up broken views