// Avoid Exception when the first click happens
 private void firstClickCtrl()
 {
     if (flag == 0)
     {
         return;
     }
     else
     {
         AppFrame.RemoveBackEntry();
     }
 }