replaced bind with on in the swipe example