Small changes in scaffold controller template

Change some scaffold controller template methods to set context