finish up getting all the gallery working.