added some ajax stuff, might be time to consider knockoutjs?