changed direct_to_template to render
fixes #169 and most of urls are changed to newstyle (#171)