Added waitForView(int id)