moved map instantiation to pagebeforehide homepage