after R completes, switch to map tab and invalidate map. fixes issue#7. remove 'active' tag from map tabpanel, fixes issue#3