fixed click and drag issues