Hide modal, if cloning is false
Merge pull request #48 from maximkou/issue#45

Hide modal on close, if not cloning