remove marker properly in callback function