updated modal to work with latest x-tag-core