adding auth mode to ui and the url