Invalidate layout and reload when finish sending or receiving