readd gesture detection, add setting button