Upgrade controller template to 4.0