add integer button functionality