separates ui listeners, adds vies for photos and videos