added the view and layout