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

Fixing issue #643