some additions to the routing and controller

@pmjones I tried to expand, but my language is bit bad and probably examples are not so simple. 

In case if you need.

Thanks