Adding up button functionality