changed index route to use navigate method