Revert "Open new window for saving the json file"

This reverts commit 0ff4ef75052dabf65afaf3c943917957131826ab.