Cleaned up routes
Added Twig function to templates