change restart gesture condition