I add a custom UI action in doc_details_actions, namely add and remove. Now It is working fine. But Both the options are getting displayed in the details. I want add to show first and once add is done, then remove should be visible. How can I do that? Please help me.