code changes for resize load event