added logic to refresh markers