modification for yesod1.2
updated to yesod 1.2