Some housekeeping work for main.scala.html