moving placement of route change callback listener