created the views except for the api