Remove the useless code.
Simple dialog appearing when clicking the add button.