implemented the add button