added remove clients and fixed undo queue