bind load and resize event