added urlresolver and fixed indentation