email view and model setup