prepared for showing addtaskdialog by handling pan gesture