fixing menu close behaviour, and some tidying up
Fixed new page load method for ipad