Made messageboxes work better and added a message upon connecting