filling out code for views