logout url and better distribution of templates