added mousePressed support