Selecting map now passes value to drawgrid function