before navigation