Added edit, ajax stuff, etc.