register view layout and resources