add global functions
add a tag directly method
add ajax support