Action block on the gridMenu that gets executed when it gets dismissed. Fix warning for calling weak variable