preventDefault for backbutton event