Fixed errors in template loading, url structure, etc.