gallery add page usign base templates