fixed bug in routes. server routes don't have loading template