added client side delete inbox code