I included this in the controller since it is required to set the headers for the controller