added join template and teacher route