initilize view method