better mouseclick detection