add some styles and fix search template