Changed set_message to set_header in controllers