added necessary buttons and listener for the add button