modified template to work with play paradigm