close modular PowerState dialog after clicking a button