added the general structure for views