Changed invalidate on mouseclick