added resize event, better handling of bound moving