working functions add existing constraints to entry and remove constraints from entry.