cleaned up photo index view with helpers