add a home page and server handler code