create a function that sets instance properties on a view