Added code for calculate and clear buttons