prepare base view