divide event listener PC and Smartphone