implemented functionality of add/remove calc buttons, need to fix up reference count when removing them