fix bug: popup form

* hiding sidebar, header and footer does not work with recent Vector skin
* window.frames does not contain iframe for popup form (seen on firefox)

Change-Id: I85c25c01c6badb4c16441084940fb42bab05b3b2