added buggy undo button