added more gui code and wrote invite functionality