created structure for mail widget