updated code. did a reset and added chhanges again to resolve a bug
updated swipe code