delegated 404 to one func
applying jade templates
removed unused templated