Implemented the onFling actions