fixed GestureDetector depreciated warning