Refactoring web interface adding extra buttons dynamically.