some template and css fix