Refactored; urlFor is now a private method