Adding tilt event listener