Show/hide button according to closed status