added compose mail hook