added subtracting buttons, simplified code