update layout and routes