made marker remove when it is no longer in the display