handling resize, still need to track mousemove