main page ready + calc