initial routes
inView flag function