fixed bug in undostack. added doubleclick to undostack.