added the controller, and the view which loads a lot of pics from the database