added redo and continue function