create contact us, gallery, and map widgets shared code