add unlock automatically; fix swipe count issue