inserting data into views using assigned variables