use page.js to handle route on the client side