init commit + button and some calc function