added support for double and right click