Cosmin: Update for dynamic frames

Updates:
1. un-toggle the "Dispersia" button if the window is closed using it-s
own close button
2. Close the "Dispersia" Window if the button is Un-toggled