chat app methods