readd map panning and add eventmanager