fix :  in MDresultview when layers are not dynamic the add to map button bugs