prevent goto previous page