building the thing out without ajax and then transform into ajax
simple functions work now add logging of history
ajax works halfway
holy mole it works