karim applied some changes to uri_handler.php