Added helper functions for generating URLs in controllers