Correct handling of resources and views