Added an initView Method (not finished)