user dropbox redirect auth, and move controller to index.html to prevent infinite loop issue