added mechanism to teardown page on soft navigate