When a user clicks a GridView card, we set isPageViewVisible to true.When a user presses the back button, if the pageView is visible, we set the flag to false.PageView is always on top of the GridView.