Format code
add jquery ui
all changed to ajax