Shift dialog: fixing the close/end shift dialogs

Signed-off-by: Kunal Shroff <shroffk@bnl.gov>