edited automation files to fix redirect issue with admin