Handling undefined methods called from URL structure