I have a navbar as a header on each page and the navbar has a button for a drawer but the drawer only opens when the onClick function is added to each page like below. How d