avoid browser navigation when changing tabs