list dynamically updated and removed unwanted buttons