Fix setting view on resources

Need to be able to specify view when creating hosts.