Made a function to send the user back to the homepage and made pages on the gridviews