added gallery plugin and modified templates