make the add button work