just before switching to different view to fix pagination
switch mapelement from abstract class. fix 0 issue for points