added swipe listener and warning text