add notebook switch page code