Fix the add button problem

some old files were merged with the latest version, that's why the button stopped to work