adds methods for save and cancel and repositioned window