Add a specific class to the list to hide buttons