Action read environment variable

+ reuse of the window edit class
+ minimal modification to allow invisible buttonChooser