Privacy Panel new pull request

This is a new pull request. We had to remove the old one due to big problems with git and some Schroedinger patches....
Fixed the code below and you don't need these two lines. (In AMD design, we should avoid any global variables if possible)