added drag events and cleaned up swiping.