implement respond to shake gesture