extract effect,add swipe event