updated Controller template