improving url by updating route class