add mysql controller
modify condition function
add domIds to JS header's load and close links