move click method into mousedown