straightening out the client side more

Json response incorporated to show the output