added some more coloring and ajax for communicating with the server