need this change to correctly set the value of `this` in the controller functions