update code for revel 0.9.0