add browser resize event