Call resizePage() after getting ajax response to make sure it is visible (fixed)

Fixing issue #643 
Resubmit of #644 (guildline reasons)
[finally I solved the issues with my branches, sorry]