Made changes to scaffold controller