Preparing a mechanism to handle post from popup.
Added mechanism to handle request from popup.