fix some bugs in sites.scala.html