revised base Controller template