Class name typo
Added initonly mode so existing elements are setup immediately. Also added inline sorbability to editGallery.