MG filter dialog refactored