shared set up for two routes rendered in ejs