made some alterations on menupage to make it easier to load data into view