Updated controller to use secured access for some operations.