added fancy stuff for routes with :id