fixing bug in refresh button logic for displaying new marker