add index view for emailapi controller