frontend: implement startETMwhen options(UI part)
a better way to call functions inside the webpage