update Routes and Layout