minor changes adding helper for gallery