adding viewport resize before ajax and popup execution on submit event