defining view object