fix the show/hide of add button