to build gui template