Small change to access views by index from outside