cleaned up server side. time to change client side to accept user input and display the replies from server