Bug 1032070 - [Settings] add done feature in onBeforsShow()

ok, I wrapped all stuffs in a promise !