changed some routings and added some templates