Changed dragging to be done by jQuery UI draggables, added boundaries so widgets can only be inside window.