added in click and drag support