Add template decorator to simplify controller code