undo button contol fix