use url reverse lookups for client side requests
Merge pull request #2109 from aronasorman/1955

use url reverse lookups for client side requests