Closing parent form from child

@ixxxl,

It is better to have one spRendered function and add run all code within it.

I can't tell which part of your code breaks the logic of the code that I've provided. You can debug your code, following the suggestions from this post: