template: remove bases useless code
template: align search html
template: update search template to bootstrap style, and fix some coding error