changed API of view locator to be able to return any number of view IDs