Added gesture support for back and forward navigation