updated secret controller