added scope destroy on modal close