fix event flow in the pages access