Use connect as middleware
Move menu to partial file and put this partial file into layout template.