saving task when user use pan into left direction
Some refactoring