only insert overlay when modal is inserted in DOM
updated references
Release 0.2.6