updating markers and groups