email capabilities and homepage logic