move map initialization in attempt to fix mobile issue