changed views to have layout file