made routes dynamic