for safari when swiping back