Everything added for gallery
pretty much everything changed