Made redo button work