Moved all calls to StaticPopupHide() from addon:CloseWindow() (and all other places they were used) to addon:ClosePopups() since this is used in quite a few places, some without hiding the main frame. Added ARL_SEARCHFILTERED to ClosePopups(), as it was used in two other places but missing here.
Moved all calls to StaticPopupHide() from addon:CloseWindow() (and all other places they were used) to addon:ClosePopups() since this is used in quite a few places, some without hiding the main frame. Added ARL_SEARCHFILTERED to ClosePopups(), as it was used in two other places but missing here.
Re-organized and categorized the upvalues.