Small changes in scaffold controller template

Change some scaffold controller template methods to let context