directive for route handling