added mouselistener to set threshold, do not close java when frame is
closed, add to plugins.config