added removal function, and single/doubleclick functionality
d