fixed button helper and calc class for the emulator