Better handling of hiding table menu after an action