1. Deletes text in inputbox as soon as it's sent successfully
2. Checks for messages every 5 seconds
3. checks for messages as soon as message sent successfully