add register handler and html template