added add button functionality