Fixed the automated routing system for the devtools page and refactored the code to make it more a more clean implementation