Client server communication

These changes are essential to the app functioning correctly