gesture detection init