Adding routing using backbone and conditional templates