add function storing fixed state of draggable box