init a view