updated the router to a loop in a loop and removed the lowercase since it's already converted in applicaiton.php