fixed bug where show page had to be refreshed to display map